package sc.web.action.demo;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import sc.core.model.auth.UserToken;
import sc.web.util.UserUtil;

@Controller
public class AuthAction {

	@RequestMapping("/demo/auth.htm")
	public String auth(ModelMap model) {
		UserToken userToken = UserUtil.getUserToken();
		model.addAttribute("authens", userToken.getUserDO().getPermissions());
		return "/demo/auth";
	}
}
